
let {request_3031,request_3001} = require('../../utils/https.js')


module.exports = {
  // 获取房间详情
  getHouseDetail : (data) => {
    return request_3001({
      url: '/newPages/houseDetail',
      method: "POST",
      data
    })
  },
  // 获取房源内设施
  getHouseAdvantage:(id)=>{
    return request_3001({
      url: `/newPages/houseAdvantage?id=${id}`,
      method: "GET",
    })
  },
  // 获取房源地址
  getHouseAddress:(id)=>{
    return request_3001({
      url: `/newPages/houseAddress?id=${id}`,
      method: "GET",
    })
  },
  // 获取可租房源面积
  getHouseRentable : (xmgs) => {
    return request_3001({
      url: `/newPages/rentable?xmgs=${xmgs}`,
      method: "GET",
    })
  },
  // 获取商机详情
  getBusinessDetail : (data) => {
    return request_3001({
      url: '/newPages/businessDetail',
      method: "POST",
      data
    })
  },
  // 更新商机延期时间
  updateBusinessDelay(data){
    return request_3001({
      url: '/newPages/businessDelay',
      method: "POST",
      data
    })
  },
  // 获取意向项目
  getAllProject(){
    return request_3001({
      url: '/enterproject',
      method: "GET",
    })
  },
  // 获取意向项目招商员
  getAllPerson(data){
    return request_3001({
      url: '/reassignm',
      method: "GET",
      data
    })
  },
  // 更新商机落地对接项目
  updateBusinessProject(data){
    return request_3001({
      url: '/newPages/businessProject',
      method: "POST",
      data
    })
  },
  // 新增商机跟进
  addBusinessFollow(data){
    return request_3001({
      url: '/newPages/businessFollow',
      method: "POST",
      data
    })
  },
  // 查询商机跟进记录
  getBusinessFollow(data){
    return request_3001({
      url: '/newPages/getBusinessFollow',
      method: "GET",
      data
    })
  },
  // 查询跟进详情
  getBusinessFollowDetail(data){
    return request_3001({
      url: '/newPages/getBusinessFollowDetail',
      method: "GET",
      data
    })
  },
  // 查询房间负责人
  getHouseProject(project){
    return request_3001({
      url: `/newPages/houseProject?project=${project}`,
      method: "GET",
    })
  },
  // 查询房间海报
  getHouseDetailImages(ycID){
    return request_3001({
      url: `/newPages/houseDetail/images?ycID=${ycID}`,
      method: "GET",
    })
  },
  // 查询对接客户详情
  getBindDetail(bID){
    return request_3001({
      url: `/newPages/getBindDetail?bID=${bID}`,
      method: "GET",
    })
  },
  // 查询外部客户的内部客户编号
  getInnerKhbh(bID){
    return request_3001({
      url: `/inner?bID=${bID}`,
      method: "GET",
    })
  }, //外部客户无内部客户编号
    // 对接客户详情查询联系人
    getLinkman(khbh){
      return request_3001({
        url: `/linkmans?khbh=${khbh}`,
        method: "GET",
      })
    },
    // 跟进记录
    getfollowRecord(bID){
      return request_3001({
        url: `/linkmans?bID=${bID}`,
        method: "GET",
      })
    },
}